﻿using System;
using System.Collections.Generic;
using Wamm.ApplicationExceptions;
using Wamm.Model.Abstract;

namespace Wamm.Model.Entities {
    public class Event : IEntity {
        public int Id { get; set; }
        public string Description { get; set; }
        public string Location { get; set; }
        public int EventTypeId { get; set; }
        public virtual EventType EventType { get; set; }
        public DateTime Occurred { get; set; }
        public virtual ICollection<Participant> Participants { get; set; }
        public string AddedBy { get; set; }
        public DateTime Added { get; set; }
        public string LastUpdatedBy { get; set; }
        public DateTime LastUpdated { get; set; }

        public void Validate(IList<RuleViolation> errors) {
            //todo - add call to ValidateEvent
        }
    }
}
